import request from '@/utils/request'

// 查询录像列表
export function listControl(query) {
  return request({
    url: '/security/patrol/list',
    method: 'get',
    params: query
  })
}

// 查询录像详细
export function getControl(id) {
  return request({
    url: '/security/patrol/' + id,
    method: 'get'
  })
}

// 新增录像
export function addControl(data) {
  return request({
    url: '/security/patrol/add',
    method: 'post',
    data: data
  })
}

// 修改录像
export function updateControl(data) {
  return request({
    url: '/security/patrol',
    method: 'put',
    data: data
  })
}

// 删除录像
export function delControl(id) {
  return request({
    url: '/security/patrol/' + id,
    method: 'delete'
  })
}

//
